<%for(var i=0;i < data.length;i++){%>
<li>
    <p class="no">
        <span></span>
        <span><%=data[i].nickName%></span>
    </p>
    <img src="<%=data[i].applyImg%>">
    <p class="vo">
        <span><%=data[i].totalCount?data[i].totalCount:0%>票</span>
        <%if(state==0){%>
        <span>未开始</span>
        <%}else if(state==1){%>
        <span data-id="<%=data[i].id%>">投票</span>
        <%}else{%>
        <span>已结束</span>
        <%}%>
    </p>
</li>
<%}%>